package com.ruoyi.fly.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.data.redis.core.StringRedisTemplate;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "ServerCategory", description = "服务分类表")
@AllArgsConstructor
public class ServerCategory extends BaseEntity {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务分类id")
    private String id;

    @ApiModelProperty(value = "服务分类名称")
    private String serverName;

    @ApiModelProperty(value = "服务分类图片")
    private String serverImg;

    @ApiModelProperty(value = "描述")
    private String brief;

    @ApiModelProperty(value = "逻辑删除  1-删除 0-未删除")
    private Long isDelete;

    @ApiModelProperty(value = "是否上架 0-上架 1-下架")
    private Long shelves;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;
}
